﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.kbwsoft.esiframe.usermanage.*"%>
<%@ page import="com.kbwsoft.esiframe.core.util.*"%>
<%@ page import="sun.jdbc.rowset.*"%>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/" + "mobileweb";

  Userxx user = (Userxx)session.getAttribute(GlobalNames.LOGIN_USER);
  String pid = "";
  String userid = "";
  String username = "";
  String usertype = "";
  boolean isLog = false;
  if( user == null || user.getUserid().equals("") ){
      out.println("<script language=JavaScript>");
	  out.println("alert('登录超时');");
      out.println("location = 'index.jsp';");
      out.println("</script>");
  }else{
      pid = Tools.nvl(user.getProp("pid"));
      isLog = true;
	  userid = user.getUserid();
	  username = user.getUsername();
	  usertype = user.getProp("usertype");
  }

  DBTransUtil transUtil = new DBTransUtil();
  //CachedRowSet  crs = transUtil.getResultBySelect("select dm , mc from dm_mx where dmm = 'DM0106'");
  //查询医生名下的患者信息
  CachedRowSet crs1 = transUtil.getResultBySelect("select * from v_patient_users where userid in (select puserid from ctcord where duserid = '" + userid + "') order by userid desc");

%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>垂直检测医疗服务平台 | 信锐利鸿</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
	<script type="text/javascript" src="<%=basePath%>/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/jquery.easyui-1.2.4.js"></script>
    <script type="text/javascript" src="<%=basePath%>/assets/js/amazeui.min.js"></script>
    <script type="text/javascript" src="../js/mask.js"></script>
    <link rel="alternate icon" type="image/png" href="<%=basePath%>/assets/i/favicon.png">
    <link rel="stylesheet" href="<%=basePath%>/assets/css/amazeui.min.css"/>
	<script src="../js/highcharts.js"></script>
    <script src="../js/exporting.js"></script>
    <style>
        .get {
            background: #1E5B94;
            color: #fff;
            text-align: center;
            padding: 100px 0;
        }

        .get-title {
            font-size: 200%;
            border: 2px solid #fff;
            padding: 20px;
            display: inline-block;
        }

        .get-btn {
            background: #fff;
        }

        .detail {
            background: #fff;
        }

        .detail-h2 {
            text-align: center;
            font-size: 150%;
            margin: 40px 0;
        }

        .detail-h3 {
            color: #1f8dd6;
        }

        .detail-p {
            color: #7f8c8d;
        }

        .detail-mb {
            margin-bottom: 30px;
        }

        .hope {
            background: #0bb59b;
            padding: 50px 0;
        }

        .hope-img {
            text-align: center;
        }

        .hope-hr {
            border-color: #149C88;
        }

        .hope-title {
            font-size: 140%;
        }

        .about {
            background: #fff;
            padding: 40px 0;
            color: #7f8c8d;
        }

        .about-color {
            color: #34495e;
        }

        .about-title {
            font-size: 180%;
            padding: 30px 0 50px 0;
            text-align: center;
        }

        .footer p {
            color: #7f8c8d;
            margin: 0;
            padding: 15px 0;
            text-align: center;
            background: #2d3e50;
        }
    </style>
</head>

<body>
<header class="am-topbar am-topbar-fixed-top">
    <div class="am-container">
        <h1 class="am-topbar-brand">
            <a href="#">垂直检测医疗服务平台</a>
        </h1>
        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-secondary am-show-sm-only"
                data-am-collapse="{target: '#collapse-head'}"><span class="am-sr-only">导航切换</span> <span
                class="am-icon-bars"></span></button>
        <div class="am-collapse am-topbar-collapse" id="collapse-head">
            <ul class="am-nav am-nav-pills am-topbar-nav">
                <li><a href="<%=basePath%>/index.jsp">首页</a></li>
                <li><a href="<%=basePath%>/center.jsp">检测中心</a></li>
                <li class="am-dropdown" data-am-dropdown>
                    <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                        其他 <span class="am-icon-caret-down"></span>
                    </a>
                    <ul class="am-dropdown-content">
                        <li class="am-dropdown-header">标题</li>
                        <li><a href="<%=basePath%>/aboutus.jsp">公司简介</a></li>
                        <li><a href="<%=basePath%>/list.jsp">最新动态</a></li>
                        <li><a href="<%=basePath%>/list.jsp">科普知识</a></li>
                        <li><a href="<%=basePath%>/contactus.jsp">联系我们</a></li>
                        <li><a href="<%=basePath%>/qa.jsp">常见问题</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</header>

<!-- 表单开始 -->
<table class="am-table">
  <thead>
    <tr>
      <th>患者姓名</th>
      <th>性别</th>
      <th>年龄</th>
      <!--<th>病史</th>-->
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <% if(crs1.size() <= 0) {%>
    <tr>
      <td colspan="5" align="center">无患者</td>
    </tr>
    <% }else{ while(crs1.next()){ %>
    <tr>
      <td><%=Tools.nvl(crs1.getString("username"))%></td>
      <td><%=Tools.nvl(crs1.getString("gendername"))%></td>
      <td><%=Tools.nvl(crs1.getString("age"))%></td>
      <!--<td><%=Tools.nvl(crs1.getString("casenote"))%></td>-->
      <td><a href="loadUserOrd.jsp?type=d1&userid=<%=Tools.nvl(crs1.getString("userid"))%>&duserid=<%=userid%>">查看</a></td>
    </tr>
    <%}}%>
  </tbody>
</table>

  <footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }">
    <div class="am-footer-miscs ">
        <p>ADD:天津市东丽区华明高新区低碳产业基地B4-210室 </p>
        <p>CopyRight©2015 <a href="<%=basePath%>/aboutus.html" target="_blank">垂直检测医疗服务平台</a> All Rights Reserved.</p>
        <p>津ICP备15008369号-1</p>
    </div>
  </footer>

</body>
</html>

<script language="javascript">

</script>
